#ifndef ____FML_BEIDOU_H_
#define ____FML_BEIDOU_H_

#include "hc32_ddl.h"
#include "hdl_gpio.h"
#include "hdl_usart.h"

#include "rtthread.h"
#include "fml_queue.h"

#include "main.h"

#include <stdio.h>
#include <string.h>

#define 	BD_STACK_SIZE 		1500
#define 	BD_PRIORITY 		15
#define 	BD_TIMESLICE 		10

typedef enum
{
	BD_IDLE,
	BD_START,
	BD_WAIT,
	BD_SEND
}en_bd_step_t;

void fml_bd_send_input(uint8_t *buf, uint16_t len);
void bd_send_pack(void);

#endif
